/*
 * @Author: zi.yang
 * @Date: 2022-02-03 14:14:23
 * @LastEditors: zi.yang
 * @LastEditTime: 2022-02-08 15:19:27
 * @Description: In User Settings Edit
 * @FilePath: \api-generator\app\public\js\login.js
 */
'use strict';
// Example starter JavaScript for disabling form submissions if there are invalid fields
(function() {
  // Fetch all the forms we want to apply custom Bootstrap validation styles to
  const forms = document.querySelectorAll('.needs-validation');

  // Loop over them and prevent submission
  Array.prototype.slice.call(forms)
    .forEach(function(form) {
      form.addEventListener('submit', function(event) {
        if (!form.checkValidity()) {
          event.preventDefault();
          event.stopPropagation();
        }
        form.classList.add('was-validated');
      }, false);
    });
})();
